<?php

namespace Acme\PinnwandBundle\Entity;

use Acme\UserBundle\Entity\User;

class Pinnwandimage {
	private $typ;
	private $file;
	private $path;
	private $base_url;
	private $lightbox;
	private $preview;
	
	/**
	 * Constructor
	 */
	public function __construct($arr_data) {
		$this->path = $arr_data ["path"];
		$this->file = $arr_data ["file"];
		$this->base_url = $arr_data ["base_url"];
	}
	private function getPath() {
		return $this->path;
	}
	private function getBaseUrl() {
		return $this->base_url;
	}
	public function getFile() {
		return $this->file;
	}
	public function getLightbox() {
		$this->lightbox = $this->getPath () . 'lightbox/' . $this->getFile ();
		return $this->lightbox;
	}
	public function getPreview() {
		$this->preview = $this->getPath () . 'preview/' . $this->getFile ();
		return $this->preview;
	}
}